
		*************************************************************************
		*** EBA Voter Turnout (VT) in democracies no lag, Fixed effects  1-10 ***
		*************************************************************************

				clear
				version 16.1
				set max_memory 32g, permanently
				set seed 1234
				set level 95 		
				cd "C:\Users\Administrator\Desktop\"
				use "turnout_eba_stdlag.dta"

				
 *************
 ** 1. Ban **
 *************
		
		xtreg vt /**/ ban /**/
		regsave using /**/ eba_vtfe_1 /**/, replace
		
		tuples 				///
			/**/ 			///
			boycott			/// 1
			competitive_s	/// 2
			concurrentsamedate /// 3
			dist_mag_s		/// 4
			econ_global_sl 	/// 5
			election_2 		/// 6
			election_3 		/// 7
			election_3_4 	/// 8
			election_4		///	9		 
			election_5_6 	/// 10
			///
			election_7_8	/// 11
			enpp_s 			/// 12
			enpp_sq_s 		/// 13
			exec_response	/// 14
			federalism		/// 15
			fract_ethnic_s 	/// 16
			fract_lang_s 	/// 17
			fract_rel_s 	/// 18
			gini_sl 		/// 19
			gni_pc_growth_sl /// 20
			///
			harassment		/// 21
			hdi_index_s 	/// 22
			inflation_ln_sl /// 23
			islamic_majority /// 24
			leg_size_ln_s	/// 25
			life_exp_sl		/// 26
			maj_status_s	/// 27
			majoritarian	/// 28
			mixed			/// 29
			num_elections_ln_s /// 30
			///
			oecd			/// 31
			party_frac_s	/// 32
			plurality		/// 33
			polity2_sl		/// 34
			pop_density_ln_sl /// 35
			prev_el_time_s	/// 36
			qual_democ		/// 37
			radios_pc_ln_sl	/// 38
			share30to69ofVAP /// 39
			subnat_rev_sl 	/// 40
			///
			subnat_exp_sl 	/// 41
			sufferage_s		/// 42
			suffreg			/// 43
			time_trend_s	/// 44
			unemployment_sl	/// 45
			unicameral		/// 46
			union_density	/// 47
			unionisation	/// 48
			urban_pop_pct_sl /// 49
			violence		/// 50
			///
			votingage		/// 51
			y1919_1994		/// 52
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(22&45&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&45&47) /* hdi_index_s unemployment_sl union_density */  ///
											!(20&22&48)) /* gni hdi and unionization */  
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ ban /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
						
	
			regsave using /**/ eba_vtfe_1 /**/, tstat pval ci autoid append detail(all) 
					 			
						}
											
				
 *************
 ** 2. Boycott **
 *************
		
		xtreg vt /**/ boycott	  /**/
		regsave using /**/ eba_vtfe_2 /**/, replace
		
		tuples 				///
			ban 			/// 1
			/**/ 			/// 
			competitive_s	/// 2
			concurrentsamedate /// 3
			dist_mag_s		/// 4
			econ_global_sl 	/// 5
			election_2 		/// 6
			election_3 		/// 7
			election_3_4 	/// 8
			election_4		///	9		 
			election_5_6 	/// 10
			///
			election_7_8	/// 11
			enpp_s 			/// 12
			enpp_sq_s 		/// 13
			exec_response	/// 14
			federalism		/// 15
			fract_ethnic_s 	/// 16	
			fract_lang_s 	/// 17
			fract_rel_s 	/// 18
			gini_sl 		/// 19
			gni_pc_growth_sl /// 20
			///
			harassment		/// 21
			hdi_index_s 	/// 22
			inflation_ln_sl /// 23
			islamic_majority /// 24
			leg_size_ln_s	/// 25
			life_exp_sl		/// 26
			maj_status_s	/// 27
			majoritarian	/// 28
			mixed			/// 29
			num_elections_ln_s /// 30
			///
			oecd			/// 31
			party_frac_s	/// 32
			plurality		/// 33
			polity2_sl		/// 34
			pop_density_ln_sl /// 35
			prev_el_time_s	/// 36
			qual_democ		/// 37
			radios_pc_ln_sl	/// 38
			share30to69ofVAP /// 39
			subnat_rev_sl 	/// 40
			///
			subnat_exp_sl 	/// 41
			sufferage_s		/// 42
			suffreg			/// 43
			time_trend_s	/// 44
			unemployment_sl	/// 45
			unicameral		/// 46
			union_density	/// 47
			unionisation	/// 48
			urban_pop_pct_sl /// 49
			violence		/// 50
			///
			votingage		/// 51
			y1919_1994		/// 52
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 

		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ boycott	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
				
	
			regsave using /**/ eba_vtfe_2 /**/, tstat pval ci autoid append detail(all) 					 			
						}
											
			
 *************
 ** 3. competitive_s **
 *************
		
		xtreg vt /**/ 	competitive_s  /**/
		regsave using /**/ eba_vtfe_3 /**/, replace
		
		tuples 				/// 
			ban 			/// 1
			boycott 		/// 2
			/**/ 			/// 
			concurrentsamedate /// 3
			dist_mag_s		/// 4
			econ_global_sl 	/// 5
			election_2 		/// 6
			election_3 		/// 7
			election_3_4 	/// 8
			election_4		///	9		 
			election_5_6 	/// 10
			///
			election_7_8	/// 11
			enpp_s 			/// 12
			enpp_sq_s 		/// 13
			exec_response	/// 14
			federalism		/// 15
			fract_ethnic_s 	/// 16
			fract_lang_s 	/// 17
			fract_rel_s 	/// 18
			gini_sl 		/// 19
			gni_pc_growth_sl /// 20
			///
			harassment		/// 21
			hdi_index_s 	/// 22
			inflation_ln_sl /// 23
			islamic_majority /// 24
			leg_size_ln_s	/// 25
			life_exp_sl		/// 26
			maj_status_s	/// 27
			majoritarian	/// 28
			mixed			/// 29
			num_elections_ln_s /// 30
			///
			oecd			/// 31
			party_frac_s	/// 32
			plurality		/// 33
			polity2_sl		/// 34
			pop_density_ln_sl /// 35
			prev_el_time_s	/// 36
			qual_democ		/// 37
			radios_pc_ln_sl	/// 38
			share30to69ofVAP /// 39
			subnat_rev_sl 	/// 40
			///
			subnat_exp_sl 	/// 41
			sufferage_s		/// 42
			suffreg			/// 43
			time_trend_s	/// 44
			unemployment_sl	/// 45
			unicameral		/// 46
			union_density	/// 47
			unionisation	/// 48
			urban_pop_pct_sl /// 49
			violence		/// 50
			///
			votingage		/// 51
			y1919_1994		/// 52
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ competitive_s	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
		
			regsave using /**/ eba_vtfe_3 /**/, tstat pval ci autoid append detail(all)  			
						}
											
	
	

				
 *************
 ** 4. concurrentsamedate **
 *************
		
		xtreg vt /**/ concurrentsamedate	  /**/
		regsave using /**/ eba_vtfe_4 /**/, replace
		
		tuples 				///
			ban 			/// 1
			boycott 		/// 2
			competitive_s 	/// 3
			/**/ 			/// 
			dist_mag_s		/// 4
			econ_global_sl 	/// 5
			election_2 		/// 6
			election_3 		/// 7
			election_3_4 	/// 8
			election_4		///	9 		 
			election_5_6 	/// 10
			///
			election_7_8	/// 11
			enpp_s 			/// 12
			enpp_sq_s 		/// 13
			exec_response	/// 14
			federalism		/// 15
			fract_ethnic_s 	/// 16
			fract_lang_s 	/// 17
			fract_rel_s 	/// 18
			gini_sl 		/// 19
			gni_pc_growth_sl /// 20
			///
			harassment		/// 21
			hdi_index_s 	/// 22
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ concurrentsamedate	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
						
	
			regsave using /**/ eba_vtfe_4 /**/, tstat pval ci autoid append detail(all)  			
						}
											
	
 *************
 ** 5. dist_mag_s **
 *************
		
		xtreg vt /**/ dist_mag_s	  /**/
		regsave using /**/ eba_vtfe_5 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			/**/ 			///
			econ_global_sl 	///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ dist_mag_s	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
						
	
			regsave using /**/ eba_vtfe_5 /**/, tstat pval ci autoid append detail(all) 
					
						}
											
								
	
 *************
 ** 6. econ_global_sl **
 *************
		
		xtreg vt /**/ econ_global_sl	  /**/
		regsave using /**/ eba_vtfe_6 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			/**/ 			///
			election_2 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ econ_global_sl	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
							
	
			regsave using /**/ eba_vtfe_6 /**/, tstat pval ci autoid append detail(all)   			
						}

 *************
 ** 7. election_2 **
 *************
		
		xtreg vt /**/ election_2	  /**/
		regsave using /**/ eba_vtfe_7 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			  /**/ 		///
			election_3 		///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_2	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
						
			regsave using /**/ eba_vtfe_7 /**/, tstat pval ci autoid append detail(all)  			
						}
											
									
	
 *************
 ** 8. election_3 **
 *************
		
		xtreg vt /**/ election_3	  /**/
		regsave using /**/ eba_vtfe_8 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			election_2  		///
			/**/   		   ///
			election_3_4 	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_3	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
						
			regsave using /**/ eba_vtfe_8 /**/, tstat pval ci autoid append detail(all)  			
						}
																	
	
 *************
 ** 9. election_3_4 **
 *************
		
		xtreg vt /**/ 	election_3_4  /**/
		regsave using /**/ eba_vtfe_9 /**/, replace
		
		tuples 				///
			ban 			///
			boycott 		///
			competitive_s 	///
			concurrentsamedate 	///
			dist_mag_s 			///
			econ_global_sl		///
			election_2  		///
			election_3   		   ///
			/**/  	///
			election_4		///			 
			election_5_6 	///
			///
			election_7_8	///
			enpp_s 			///
			enpp_sq_s 		///
			exec_response	///
			federalism		///
			fract_ethnic_s 	///
			fract_lang_s 	///
			fract_rel_s 	///
			gini_sl 		///
			gni_pc_growth_sl ///
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_3_4	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
					
			regsave using /**/ eba_vtfe_9 /**/, tstat pval ci autoid append detail(all) 			
						}
											
									
	
 *************
 ** 10. election_4 **
 *************
		
		xtreg vt /**/ election_4	  /**/
		regsave using /**/ eba_vtfe_10 /**/, replace
		
		tuples 				///
			ban 			/// 1
			boycott 		/// 2
			competitive_s 	/// 3
			concurrentsamedate 	/// 4
			dist_mag_s 			/// 5
			econ_global_sl		/// 6
			election_2  		/// 7
			election_3   		/// 8
			election_3_4   	    /// 9
			/**/ 		///			 
			election_5_6 	/// 10
			///
			election_7_8	/// 11
			enpp_s 			/// 12
			enpp_sq_s 		/// 13
			exec_response	/// 14
			federalism		/// 15
			fract_ethnic_s 	/// 16
			fract_lang_s 	/// 17
			fract_rel_s 	/// 18
			gini_sl 		/// 19
			gni_pc_growth_sl /// 20
			///
			harassment		///
			hdi_index_s 	///
			inflation_ln_sl ///
			islamic_majority ///
			leg_size_ln_s	///
			life_exp_sl		///
			maj_status_s	///
			majoritarian	///
			mixed			///
			num_elections_ln_s ///
			///
			oecd			///
			party_frac_s	///
			plurality		///
			polity2_sl		///
			pop_density_ln_sl ///
			prev_el_time_s	///
			qual_democ		///
			radios_pc_ln_sl	///
			share30to69ofVAP ///
			subnat_rev_sl 	///
			///
			subnat_exp_sl 	///
			sufferage_s		///
			suffreg			///
			time_trend_s	///
			unemployment_sl	///
			unicameral		///
			union_density	///
			unionisation	///
			urban_pop_pct_sl ///
			violence		///
			///
			votingage		///
			y1919_1994		///
			, max(3) min(3)  kronecker cond(!(20&22&47) /* gni hdi and union-density*/ ///
											!(20&22&48) /* gni hdi and unionization */	///	
											!(22&46&48) /* hdi_index_s unemployment_sl unionisation */ ///
											!(22&46&47)) /* hdi_index_s unemployment_sl union_density */ 
		
				forvalues i = 1/`ntuples'   {
				  xtreg vt /**/ election_4	 /**/ `tuple`i''  comp pr gni_ln_sl pop_ln_sl vt_lag if democracy==1, fe robust cluster(ccode)
					
	
			regsave using /**/ eba_vtfe_10 /**/, tstat pval ci autoid append detail(all)  			
						}
											
									
	 
